export default {
  /* title: {
    text: '订单统计'
  }, */
  legend: {
    data: ['销售额', '销售额涨幅', '销量', '销量涨幅']
  },
  /* toolbox: {
    feature: {
      magicType: {
        type: ['stack', 'tiled']
      },
      saveAsImage: {
        pixelRatio: 2
      }
    }
  }, */
  xAxis: {
    type: 'category',
    data: [
      '1月',
      '2月',
      '3月',
      '4月',
      '5月',
      '6月',
      '7月',
      '8月',
      '9月',
      '10月',
      '11月',
      '12月'
    ]
  },
  yAxis: [
    { name: '销售情况', type: 'value', position: 'left' },
    {
      name: '涨幅',
      type: 'value',
      position: 'right',
      axisLabel: {
        formatter: function (val, index) {
          return val.toFixed(2) * 100 + '%'
        }
      },
      axisPointer: {
        label: {
          formatter: function (params) {
            return (params.value * 100).toFixed(2) + '%'
          }
        }
      }
    }
  ],
  series: [
    {
      name: '销售额',
      data: [],
      type: 'bar',
      smooth: true,
      yAxisIndex: 0
    },
    {
      name: '销售额涨幅',
      data: [],
      type: 'line',
      smooth: true,
      yAxisIndex: 1
    },
    {
      name: '销量',
      data: [],
      type: 'bar',
      smooth: true,
      yAxisIndex: 0
    },
    {
      name: '销量涨幅',
      data: [],
      type: 'line',
      smooth: true,
      yAxisIndex: 1
    }
  ]
}
